package net.maku.module.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.maku.module.entity.AgFriendLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AgFriendLinkMapper extends BaseMapper<AgFriendLink> {



    @Select("SELECT id, name, url, sort, create_time, update_time, status, website_id, link_flag, tenant_id " +
            "FROM ag_friend_link " +
            "WHERE website_id = #{websiteId} AND link_flag = #{linkFlag} order by sort asc")
    List<AgFriendLink> getFriendLink(@Param("websiteId") Integer websiteId, @Param("linkFlag") Integer linkFlag);

    // MyBatis-Plus 提供的 BaseMapper 已经包含基本的增删改查方法
}